package ua.javatrainer;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value="/account")
public class LoginController {

    @RequestMapping(method= RequestMethod.GET)
    public ModelAndView helloWorld(){
        ModelAndView mav = new ModelAndView();
        mav.setViewName("login");
        mav.addObject("message", "Hello Not World!");

        return mav;
    }
}
